package com.guoguo.mapper;


import com.guoguo.entity.Favorite;
import com.guoguo.entity.Model;
import com.guoguo.entity.UserExt;
import com.guoguo.entity.vo.ModelAlbumVO;
import com.guoguo.entity.vo.ModelAttentionVO;
import com.guoguo.entity.vo.ModelsVO;
import com.guoguo.entity.vo.UserExtVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2017/8/16.
 */
public interface ModelMapper {
    //模特个人信息

    Model getModelsById(String modelId);

    int getModels(String ModelId);


    //模特列表
    List<ModelsVO> getModelList(int pageNum);


    List<ModelsVO> selectModelsList();

    List<ModelsVO> selectModelList();


    /**
     * 模特历史专辑
     *
     * @param modelId
     * @return
     */
    List<ModelAlbumVO> getModelAlbumList(String modelId);

    /**
     * 用户关注专辑头像列表
     *
     * @param favorite
     * @return
     */
    List<UserExtVO> getFavoriteUserIcons(Favorite favorite);

    int deleteByPrimaryKey(String modelId);

    Model selectByPrimaryKey(String modelId);

    Model updateBySelective();

    int updateByPrimaryKeySelective(Model model);

    int updateModel(Model model);

    int updateByPrimaryKey(Model model);

    int insertSelective(Model model);

    int insert(Model model);

    int UDByPrimaryKey(String modelId);
}
